package com.lh.service;

import com.lh.pojo.OrderStatus;
import com.lh.pojo.bo.CreateOrderBO;
import com.lh.pojo.vo.OrderVO;

/**
 * @program: foodie-dev
 * @description:
 * @author: LH
 * @create: 2022-05-20 16:43
 **/
public interface OrderService {

    /**
     * 创建订单
     * @param createOrderBO
     * @return
     */
    public OrderVO create(CreateOrderBO createOrderBO);

    /**
     * 支付回写
     * @param orderId
     */
    public void notifyMerchantOrderPaid(String orderId);

    /**
     * 根据订单号获取订单状态
     * @param orderId
     * @return
     */
    public OrderStatus getPaidOrderInfo(String orderId);

    /**
     * 关闭延期订单
     */
    public void closePostponeOrder();
}
